#ifndef _PLAYLIST_H_
#define _PLAYLIST_H_

#include <nds.h>
#include "fileinfo.h"
#include <vector>

class Playlist {

private:
	std::vector<fileInfo> list;
	u8 selected;
	u8 current;

public:
	Playlist();
	void add(std::string filepath);
	void remove(uint32_t entry);
	void prev();
	void next();
	void moveBlockUp(uint32_t first, uint32_t last);
	void moveBlockDown(uint32_t first, uint32_t last);
	void clear();

	void redraw();
	
	void setCurrent(uint32_t no);
	uint32_t getCurNo();
	fileInfo getInfo(uint32_t entry);
	uint32_t numberOfEntries();
	
	void selEntry(uint32_t no);
	uint32_t getSelEntry();
	
};

#endif /* _PLAYLIST_H_ */
